import {
	get,
	post,
	uploadFile
} from '@/utils/request'


// export const default {


//获取分类
export const getClassify = function(data) {
	return get({
		url: '/GoodsCategory/Lists',
		data: data
	})
}

//获取商品列表
export const getOrderList = function(data) {
	return get({
		url: '/Goods/getGoodsList',
		data: data
	})
}

//获取热销商品
export const getHotGood = function(data) {
	return get({
		url: '/Goods/getHotList',
		data: data,
	})
}

//获取商品详情
export const getGoodsDetail = function(data) {
	return get({
		url: '/Goods/getGoodsDetail',
		data: data,
	})
}

//获取足迹
export const getclickGood = function(data) {
	return get({
		url: '/Goods/clickGoods',
		data: data,
	})
}

//获取购物车列表
export const getCart = function(data) {
	return get({
		url: '/Cart/lists',
		data: data,
	})
}
//添加购物车
export const AddCart = function(data) {
	return post({
		url: '/Cart/add',
		data: data,
	})
}
//更改购物车数量
export const EditCart = function(data) {
	return post({
		url: '/Cart/change',
		data: data,
	})
}
//删除购物车
export const delCart = function(data) {
	return post({
		url: '/Cart/del',
		data
	})
}

//修改购物车数量
export const ChangeCart = function(data) {
	return post({
		url: '/Cart/selected',
		data: data
	})
}

//获取用户地址列表
export const getUserAddress = function(data) {
	return get({
		url: '/UserAddress/lists',
		data
	})
}

//添加用户地址
export const AddUserAddress = function(data) {
	return post({
		url: '/UserAddress/add',
		data: data,
	})
}

//获取单条地址
export const getOneAddress = function(data) {
	return get({
		url: '/UserAddress/detail',
		data,
	})
}

//获取默认地址
export const getDefaultAddress = function(data) {
	return get({
		url: '/UserAddress/getDefault',
		data
	})
}

//修改单条地址
export const EditOneAddress = function(data) {
	return post({
		url: '/UserAddress/update',
		data
	})
}

//删除地址
export const DelAddress = function(data) {
	return post({
		url: '/UserAddress/del',
		data
	})
}

//申请成为团长
export const Distribution = function(data) {
	return post({
		url: '/Distribution/apply',
		data
	})
}

//下单
export const submitOrder = function(data) {
	return post({
		url: '/Order/submitOrder',
		data
	})
}

//获取支付方式
export const getPayWay = function(
	data) {
	return get({
		url: '/Order/getPayWay',
		data
	})
}

//支付
export const unifiedpay = function(
	data) {
	return post({
		url: '/pay/unifiedpay',
		data
	})
}

//获取个人信息
export const getUserInfo = function(data) {

	return get({
		url: '/User/info',
		data
	})
}

//我的团队
export const getteam = function(
	data) {
	return get({
		url: '/User/team',
		data
	})
}

//团队下单记录
export const getsubordinateLists = function(data) {
	return get({
		url: '/Order/subordinateLists',
		data
	})
}

//分享
export const getShare =
	function(data) {
		return get({
			url: '/Order/distribution',
			data
		})
	}

//订单详情
export const
	getOrderDetail =
	function(data) {
		return get({
			url: '/Order/getOrderDetail',
			data
		})
	}

//订单列表
export const
	getOrder =
	function(
		data) {
		return get({
			url: '/Order/lists',
			data
		})
	}

//结算提现申请
export const
	WithdrawApply =
	function(
		data
	) {
		return post({
			url: '/Withdraw/apply',
			data
		})
	}
//产品列表
export const
	CategoryGoodsList =
	function(
		data
	) {
		return get({
			url: '/Goods/CategoryGoodsList',
			data
		})
	}

//获取微信code
export const
	getCode =
	function(
		data
	) {
		return get({
			url: '/Account/codeUrl',
			data
		})
	}

//微信公众号登录
export const
	OaLogin =
	function(
		data
	) {
		return post({
			url: '/Account/oaLogin',
			data
		})
	}

//绑定原来的手机号
export const
	SetNowPho =
	function(
		data
	) {
		return post({
			url: '/Account/oaLogin',
			data
		})
	}

//修改个人信息
export const
	EditUser =
	function(
		data
	) {
		return post({
			url: '/User/setInfo',
			data
		})
	}
//团员详情
export const
	OrderSubordinateLists =
	function(
		data
	) {
		return get({
			url: '/Order/subordinateLists',
			data
		})
	}
// }